const path = require("path")

module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://47.108.251.106:8881/api/private/v1/',
        change: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        "api": path.resolve(__dirname, './src/api'),
        "com": path.resolve(__dirname, './src/components'),
        "view": path.resolve(__dirname, './src/views'),
        "uti": path.resolve(__dirname, './src/utils'),
        'lay': path.resolve(__dirname, './src/layouts')
      }
    }
  }
}
